import React from 'react';
import login from "@/views/login.tsx";

interface Props {
    title: string,
    children?: React.ReactNode
}

const PageModule = ({
                        title,
                        children,
                        btns
                    }: Props) => {
    return (
        <div className="page-module">
            <div className="page-module-title">
                <span className="circle"></span>
                <h2>{title}</h2>
                {btns? btns:null}
            </div>
            {children ? children : null}
        </div>
    );
};

export default PageModule;